import {reactive,ref} from 'vue'
import { defineStore } from 'pinia'
export const useBatchData = defineStore('batchData',()=>{
  const goods = reactive(['商品1','商品2','商品2'])
  const goodsChoose = ref('商品1')

  const tableData = reactive([{
    id:1,
    batchNum:1,
    num:100,
    specifications:'2.5升',
    price:250,
    manufactureDate:'2024-10-1',
    area:'地块1',
    createTime:'2024-10-10',
  },
  { 
    id:2,
    batchNum:2,
    num:200,
    specifications:'5升',
    price:400,
    manufactureDate:'2024-10-1',
    area:'地块1',
    createTime:'2024-10-10',
  }])

  

  return {goods,goodsChoose,tableData}
})